<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
			function editTemplate(deviceType,deviceId,scopeId){
                <%--parent.parent.openWindow("模板配置",1000,400,"${ctx}/standardMeasureScope/showTemplateConfigure?deviceType="+deviceType+"&deviceId="+deviceId+"&scopeId="+scopeId);--%>
                parent.parent.addTab("配置模板","${ctx}/standardMeasureScope/showTemplateConfigure?deviceType="+deviceType+"&deviceId="+deviceId+"&scopeId="+scopeId,"mbpdFcl");
			}
		</script>
	</head>
	<body onload="init()">
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/standardMeasureScope/list">
			<ec:row style="text-align:center;">
				<ec:column property="ID_"
					title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
					style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${v.scope_id}' name='id' id="id"
						onclick="check_item(this.form,this.form.id)" ></input>
				</ec:column>
				<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="device_type" title="设备类别" ><a href="javascript:void(0)" onclick="parent.view('${v.scope_id }')">${v.deviceTypeName}</a></ec:column>
				<ec:column property="device_id_" title="气体名称" >${v.deviceIdName}</ec:column>
				<ec:column property="measure_scope" title="测量范围">${v.measure_scope}</ec:column>
				<ec:column property="remark" title="备注">${v.remark}</ec:column>
				<ec:column property="editTemplate" title="操作"><span name="editTemplateName" style="cursor: pointer;" onclick="editTemplate('${v.device_type}','${v.device_id_}','${v.scope_id}')">配置模板</span></ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>